﻿using System;
using System.Diagnostics;
using System.Runtime.Serialization;

namespace CSC.Google
{
    /// <summary>
    /// A block for URLs
    /// </summary>
    [Serializable]
    public class UrlBlock
    {
        #region Private Variables
        [OptionalField, DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private FormatArgs header = null;
        [OptionalField, DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private UrlPart[] urls = new UrlPart[0];
        #endregion

        /// <summary>
        /// Heading to be displayed with the list of URLs.
        /// </summary>
        public FormatArgs Header { get { return header; } }

        /// <summary>
        /// List of entries that provide information about URLs in the URL block. Optional.
        /// </summary>
        [DebuggerDisplay("Count = {Urls.Length}")]
        public UrlPart[] Urls { get { return urls; } }


    }
}
